<script type="text/javascript">function edit_term(id){var term_name=$('#edit_term_name_box').val();if(term_name==''){alert('编辑分类不能为空');$('#edit_term_name_box').focus();return false;}$.post('<?php echo $this->get_action_url('ajax_edit_term'); ?>', {term_id:id, term_name:term_name, term_note:$('#edit_term_note_box').val()}, function(data){switch(data){case '101':alert('操作成功!');location.reload();break;case '100':alert('操作失败,请重新操作');break;case '103':alert('对不起,你编辑的分类已存在!');break;}});}</script>
<table width="100%" border="0" cellspacing="5" cellpadding="0">
              <tr>
                <td width="100" height="30" align="right">分类名称：</td>
                <td align="left"><input type="text" name="class_name" id="edit_term_name_box" value="<?php echo $data['term_name']; ?>"/></td>
              </tr>
              <tr>
                <td width="100" height="60" align="right">分数注释：</td>
                <td align="left"><textarea name="term_note" id="edit_term_note_box"><?php echo $data['term_note']; ?></textarea></td>
              </tr>
              <tr>
                <td width="100" height="30" align="right">&nbsp;</td>
                <td align="left"><input type="button" name="edit_submit_button" value="编辑" onclick="edit_term(<?php echo $data['term_id']; ?>);"/></td>
              </tr>
</table>